import VueRouter from 'vue-router'
import home from './components/tabbar/home.vue'
import member from './components/tabbar/member.vue'
import search from './components/tabbar/search.vue'
import shopcar from './components/tabbar/shopcar.vue'
import newslist from './components/home-child/newslist.vue'
import newPress from './components/newList/newPress.vue'
import Analysis from './components/Analysis-img/Analysis.vue'
import details from './components/Img-details/details.vue'
import shop from './components/shop-phone/shop.vue'
import shopInfo from './components/shop-phone/shopInfo.vue'
import present from './components/shop-phone/present.vue'
import discuss from './components/shop-phone/discuss.vue'
var router = new VueRouter({
	routes:[
		{path:'/',redirect:'home'},
		{ path:'/home',component:home},
		{ path:'/member',component:member},
		{ path:'/shopcar',component:shopcar},
		{ path:'/search',component:search},
		{ path:'/home/newslist',component:newslist},
		{ path:'/home/Analysis',component:Analysis},
		{ path:'/home/newslist/newPress/:id',component:newPress},
		{ path:'/home/Analysis/details/:id',component:details},
		{ path:'/home/shop',component:shop},
		{ path:'/home/shopInfo/:id',component:shopInfo,name:'shopinfo'},
		{ path:'/home/shopInfo/present/:id',component:present},
		{ path:'/home/shopInfo/discuss/:id',component:discuss},
		// {path:'/rest',component:rest}
	],
	linkActiveClass: 'mui-active'
})
export default router